package tests;


import static org.junit.Assert.*;
import PageLib.*;
import org.junit.*;
import static org.junit.Assert.*;

public class allPhonesTest {

	@Before
	public void setup()
	{
		
		}
	@Ignore
  @Test
  public void testOpn()
 {
	CrdoHome O =new CrdoHome();
	O.windowOpn("http://www.credomobile.com/handset/default.aspx?handsetCategoryID=0");
	O.clickLink("link=All Phones");
	
	}//end of testOpn
 
	@Ignore
	@Test
	public void testPageElement()
	{PageOpn M=new PageOpn();
	
	M.windowOpn("http://www.credomobile.com/handset/default.aspx?handsetCategoryID=0");

	
    assertEquals(true,M.elementVisible("link=shop plans"));
//M.elementVisible("link=shop plans");		
	}
	
	//@Ignore
	@Test
	public void testShopServicesLink()
	{
		CrdoHome P =new CrdoHome();
		P.openHome();
		P.clickLink("Link=All Phones");
		//allPhones ap= new allPhones();
		assertFalse(P.ElementPresent("//*[@id=\"buyflowSteps\"]/li[5]/a"));
		//ap.addToCart("document.forms[0].elements[5]");
	
		//assertTrue(ap.ElementPresent("//*[@id=\"buyflowSteps\"]/li[5]/a"));
		
		
	}
	
	
 
	@After
	public void tearDown()  {
		
	}

}
